package cn.tedu._01mvcboot01.controller;

import cn.tedu._01mvcboot01.pojo.dto.VehicleDTO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class VehicleController {

    @RequestMapping("/v1/vehicle/add1")

    @ResponseBody
    public String add1(String brand, String model, Double price) {

        System.out.println
                ("恭喜你，你购买的车辆品牌是：" + brand + "型号是：" + model + "价格是：" + price);

        return "恭喜你，添加成功";
    }
}